package com.example.sms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.sms.entity.Student;
import com.example.sms.entity.Teacher;
import com.example.sms.entity.dto.LoginDTO;
import com.example.sms.entity.dto.RegisterDTO;
import io.swagger.models.auth.In;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional

public interface TeacherService extends IService<Teacher> {

    Teacher login(LoginDTO teacher);

    Integer register(RegisterDTO teacher);

    Object getCourses(Integer id);

    Integer addCourse(Integer teacherId, Integer courseId);

    Object getTeacherCourses(Integer teacherId);


    Integer delStudent(Integer teacherId, Integer studentId);
}
